<br/>
<div style="min-height:250px;padding:20px;">

<div id="rsvErrors"> </div>

<?php
if(!empty($err_msg))
{
	echo "<div class='err'> Login Failed . Please try again</div>";
}
if(!empty($st_msg))
{
	 echo "<div class='st_msg'>".$st_msg."</div>";
}
?>  
 
<form action="<?= $base_url; ?>member/login/<?= $cur_page;?>" method="post" id="reg_form" class="lgn_form_01" >

<fieldset id="inputs" class="fieldset">
	<br/>
	<?php
    if(!empty($mismatch))
    {
        echo "<font color='#990066'> <b>Password entered doesn't match </b></font>";
    }
	?>
	<h3 class="tit_1"> Login </h3>

	
 

    <label class="reg">Username/Email Id</label>   
    									 <input id="username" type="text" name="email_id" value="<?php echo $member['email_id'];?>" placeholder="Username" autofocus required /><br/>
	<label class="reg">Password</label>
		        						<input id="password" type="password" name="password" value="<?php echo $member['password'];?>" placeholder="Password" autofocus required /><br/>
 
        <br/>

		
			<div class="buttons">
			    <button type="submit" name="save" class="b21" value="Go" >
			    
 					  	Login
 				
 			    </button><a href="javascript: history.go(-1)" style="text-decoration:none;"><button type="button" name="cancel" class="b21" value="Cancel" >Cancel </button></a>
			
			</div>
            <br /> <br />
                                  <a href="<?=$base_url?>member/forget_password" class="pass" style="float:right; margin-right:25px;"> Forget Password....?  </a> 

</fieldset>

 </form>
 
 <script>
 $(document).ready(function() {
     $("#reg_form").RSV({
       onCompleteHandler: frmSubmit,
       errorFieldClass: "errorDesc",
       displayType: "display-html",
       errorHTMLItemBullet: "&#8212; ",
             rules: [
                     "required,email_id,Please enter email Id.",				
					 "required,password,Please enter password",
             ]
     });
  // a custom onComplete handler to prevent form submits for the demo
     function frmSubmit()
     {
       return true;
     }

        
});
 </script>
 </div>